home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
033a
/
moretime.zip
/
MORETIME.DOC
< prev
next >
Wrap
Text File
|
1991-12-18
|
5KB
|
115 lines
MoreTime v1.0 - 12/18/91
-----------------------------------------------------------------------------
This was created to answer the needs of the following:
Here's the need:
A door called MORETIME to allow certain new users to enter a
specific password (which they will know in advance) and raise the
amount of time and bytes they are allowed.
Here's the scenario:
The average new user is allowed to download 50K and has a 30
min/day time limit. Some special folks need to call into the BBS and
download a 100K file and need more time to do it in. They can't take
the time to use the regular VERIFY door to raise their access, since
they are calling long distance, so they've called me in advance to ask
me how to log on to my BBS and download the file they need. Once they
log on as a completely new user, and get to the main board, they enter
MORETIME and are prompted for a password. Since I've already spoken
to them and given them the special password, they enter that. The
door writes to PCBOARD.SYS and gives them 90 minutes per day and
unlimited access to the files (or simply raises their security level).
Here's the question:
Does such a door already exist, or would someone with some
programming expertise like to take a swing at it?
I've read DEVELOP.SYS and while the programming logic is
pretty obvious to me, the technique for writing it is beyond my
present level of experience. Any comments would be appreciated.
-----------------------------------------------------------------------------
Here's a simple program to do the job.
Setup the door with PCBSETUP and install a PASSWORD if that fits your
needs. For fastest access, use the SHELL method (no swap needed) and
leave USERS.SYS & DOOR.SYS set to NO.
The door file should look like this:
MORETIME %PCBDRIVE%%PCBDIR%PCBOARD.SYS
or
CD \MORETIME
MORETIME %PCBDRIVE%%PCBDIR%PCBOARD.SYS
COPY PCBDOOR.TXT %PCBDIR%
CD %PCBDIR%
This should work for multiple nodes just fine. (note: you can not use
the swap option in the door as the %PCBDRIVE% & %PCBDIR% variables will
not be present (unless you are settiing them manually in your BOARD.BAT
file.)
The file MORETIME.EXE should be located in the path or current directory
and the file MORETIME.CFG must be in the current path or change the batch
file to change to the directory before running MORETIME as in example 2.
The MORETIME.CFG file should contain the following 5 lines
MORETIME.DAT
MORETIME.BAD
MORETIME.ADD
PCBDOOR.TXT
60
Line 1:Drive:Path\FileName of the User Data base of Users who have used the door
Line 2:Drive:Path\FileName of the text to display if a User has already accessed
the Door and is refused access again.
Line 3:Drive:Path\FileName of the text to display if a User is granted the
additional time.
Line 4:Drive:Path\FileName of the text file to copy the file(s) from Line 2 or
Line 3 to.
Line 5:The Amount of additional Time to be granted.
You may 'CLEAR' the database at any time (like in an event) to allow users to
reaccess the door another day, or just leave it going to allow a single access
to the door. You can leave the line blank if you don't want to limit use of the
door. The use of the door multiple times in a single call will do the user no
good as time is granted by setting the CreditTime value to the amount set in
line 5. Setting this value more than once does the user no good. To 'CLEAR'
the database, do not delete the file, but set it to ZERO BYTES by doing a
REM > MORETIME.DAT
If the file does not exist at all, then the program will not work right. Before
opening the file, the existence of the file is checked for to avoid errors in
BASIC.
Files are not opened in share mode but as the program is going to run so fast,
it should not present any problems as multiple users would have to try to run
the door at the exact same moment.
The program returns the following ErrorLevel codes.
20 = The Config file MORETIME.CFG could not be found.
10 = The PCBOARD.SYS fie specified on the Command Line could not be found.
1 = The User was not granted more time due to being found in database file.
0 = The User was granted the additional time.
The file was compiled with PDQ for small size and fast operation. The source is
included (although unless you have Crescent's QuickPack Professional libraries
you won't be able to compile it without changing the references to the 3
routines I used from the Library.
If you have any questions, give me a call at my BBS
SHARP Technical Support Line BBS - (404) 962-1788 - ATI 9600 etc/E V.32
Gary Meeker